public class xiti3_9{
  public static void main(String[] args) {
    int a=8;
    long sum=0;
    for(int i=1;i<=10;i++){
      double f=Math.pow(10,10-i);
      sum=sum+(long)(8*f)*i;
    }
    System.out.println(sum);
  }
}
